package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-03-31
 */
public class Subscribe implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 璁㈠崟缂栧彿
     */
      private String orderNumber;

      /**
     * 閺€鎯版彛閸︽澘娼?
     */
      private String shippingAddress;

      /**
     * 鏀惰揣浜哄鍚?
     */
      private String userName;

      /**
     * 鏀惰揣浜烘墜鏈哄彿
     */
      private String userPhone;

    private String address;

      /**
     * 鐣欒█
     */
      private String message;

      /**
     * 閸熷棗鎼х紓鏍у娇
     */
      private String productNumber;

    @TableField(exist = false)
    private List<Commodity> commodities = new ArrayList<>();

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<Commodity> getCommodities() {
        return commodities;
    }

    public void setCommodities(List<Commodity> commodities) {
        this.commodities = commodities;
    }

    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getOrderNumber() {
        return orderNumber;
    }

      public void setOrderNumber(String orderNumber) {
          this.orderNumber = orderNumber;
      }
    
    public String getShippingAddress() {
        return shippingAddress;
    }

      public void setShippingAddress(String shippingAddress) {
          this.shippingAddress = shippingAddress;
      }
    
    public String getUserName() {
        return userName;
    }

      public void setUserName(String userName) {
          this.userName = userName;
      }
    
    public String getUserPhone() {
        return userPhone;
    }

      public void setUserPhone(String userPhone) {
          this.userPhone = userPhone;
      }
    
    public String getAddress() {
        return address;
    }

      public void setAddress(String address) {
          this.address = address;
      }
    
    public String getMessage() {
        return message;
    }

      public void setMessage(String message) {
          this.message = message;
      }
    
    public String getProductNumber() {
        return productNumber;
    }

      public void setProductNumber(String productNumber) {
          this.productNumber = productNumber;
      }

    @Override
    public String toString() {
        return "Subscribe{" +
              "id=" + id +
                  ", orderNumber=" + orderNumber +
                  ", shippingAddress=" + shippingAddress +
                  ", userName=" + userName +
                  ", userPhone=" + userPhone +
                  ", address=" + address +
                  ", message=" + message +
                  ", productNumber=" + productNumber +
              "}";
    }
}
